<?php $this->renderPartial('../common/_header');?>
<div class="container my-container">
    <div class="row">
        <div class="col col-lg-3">
            <?php $this->renderPartial('//common/'.($this->user ? 'menu' : 'menu_guest'));?>
        </div>
        <div class="col col-lg-9">

            <div id="content-password">

                <div class="col col-lg-6">
                    <div class="page-header">
                        <h2><?php echo $passwordActionName?></h2>
                    </div>

                    <?php $form=$this->beginWidget('CActiveForm', array(
                            'id'=>'password-form',
                            'enableClientValidation'=>true,
                            'clientOptions'=>array(
                                'validateOnSubmit' => true,
                                'validateOnChange' => true,
                            ),
                            'enableAjaxValidation'=>false,
                            'htmlOptions' => array('class' => 'form-horizontal my-form')
                        )); ?>

                    <?php if($this->user->password):?>
                        <div class="row">
                            <?php echo $form->labelEx($model,'oldPassword', array('class' => 'col col-lg-4 control-label')); ?>
                            <div class="col col-lg-8">
                                <?php echo $form->passwordField($model,'oldPassword',array('autocomplete'=>'off','maxlength'=>255)); ?>
                                <?php echo $form->error($model,'oldPassword');?>
                            </div>
                        </div> 
                        <?php endif?>

                    <div class="row">
                        <?php echo $form->labelEx($model,'newPassword', array('class' => 'col col-lg-4 control-label')); ?>
                        <div class="col col-lg-8">
                            <?php echo $form->passwordField($model,'newPassword',array('autocomplete'=>'off','maxlength'=>255)); ?>
                            <?php echo $form->error($model,'newPassword');?>
                        </div>
                    </div> 


                    <div class="row">
                        <?php echo $form->labelEx($model,'reNewPassword', array('class' => 'col col-lg-4 control-label')); ?>
                        <div class="col col-lg-8">
                            <?php echo $form->passwordField($model,'reNewPassword',array('autocomplete'=>'off','maxlength'=>255)); ?>
                            <?php echo $form->error($model,'reNewPassword');?>
                        </div>
                        <div class="col col-lg-8 col-offset-4 margintop15">
                            <button class="btn btn-primary" type="submit">
                                <i class="icon-signin"></i> <?php echo $passwordActionName?>
                            </button>                               
                        </div>
                    </div> 

                    <?php $this->endWidget(); ?>
                </div>
            </div>
        </div>
    </div>

</div>


